package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckGroup;

import java.util.List;

/**
 * @Author: liangWeiQUQ
 * @Description:
 * @DateTime: 2021/2/26 23:00
 **/
public interface CheckGroupService {
    /**
     * @Author: liangWeiQUQ
     * @Date: 23:09 2021/2/26
     * @Parms
     * @ReturnType:
     * @Description: 检查项--分页查询
    */
    PageResult findPage(QueryPageBean queryPageBean);
    /**
     * @Author: liangWeiQUQ
     * @Date: 23:17 2021/2/26
     * @Parms
     * @ReturnType:
     * @Description: 检查组新增所有项目
     */
    void add(Integer[] checkitemIds, CheckGroup checkGroup);
    /**
     * @Author: liangWeiQUQ
     * @Date: 15:05 2021/2/27
     * @Parms
     * @ReturnType:
     * @Description: 检查组-根据id查询检查组
     */
    CheckGroup findById(Integer id);
    /**
     * @Author: liangWeiQUQ
     * @Date: 15:05 2021/2/27
     * @Parms [id]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 检查组-根据检查组id查询关联检查项信息
     */
    List<Integer> findCheckItemIdsById(Integer id);
    /**
     * @Author: liangWeiQUQ
     * @Date: 15:05 2021/2/27
     * @Parms [checkitemIds, checkGroup]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 检查组-修改数据
     */
    void edit(Integer[] checkitemIds, CheckGroup checkGroup);
    /**
     * @Author: liangWeiQUQ
     * @Date: 15:05 2021/2/27
     * @Parms [checkitemIds, checkGroup]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 检查组-删除数据
     */
    void deleteById(Integer id);

    /**
     * 查询所有检查组
     * @return
     */
    List<CheckGroup> findAll();

}
